package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BasePageInfo;
import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.bean.MarketGoods;
import com.cskaoyan.service.admin.MarketFootprintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LC_RSH
 * @date 2022/6/29 15:28
 */
@RestController
@RequestMapping("wx/footprint")
@Transactional
public class WxFootprintController {
    @Autowired
    MarketFootprintService footprintService;

    /**
     * 通过用户收藏展示商品列表
     *
     * @return
     * @author LC_R-SH
     * @since 2022/06/29 16:02
     */
    @RequestMapping("list")
    public BaseRespVo list(BasePageInfo info) {
        BaseRespVo baseRespVo = footprintService.wxQuery(info);
        return baseRespVo;
    }

    @RequestMapping("delete")
    public BaseRespVo delete(@RequestBody MarketGoods goods) {
        BaseRespVo baseRespVo = footprintService.delete(goods);
        return baseRespVo;
    }

}

/**
 * 历史足迹
 *
 * @author 86157
 * @since 2022/06/29 15:28
 */